﻿local QI = DailyIntake.QuestItems;
local Localize = DailyIntake.Localize;

-- Add item: High Impact Grenade; http://www.wowhead.com/?item=38574
local function HighImpactGrenade()
    return not UnitOnTaxi("player")
        
        -- must be in right location
        and GetZoneText() == Localize("Zul'Drak")
        and GetSubZoneText() == Localize("Drak'Sotra")
        
        -- must not have completed quest objective yet
        and not QI.QuestIsDone(12591); -- Troll Patrol: Throwing Down; http://www.wowhead.com/?quest=12591
end;
QI.RegisterQuestItem(38574, QI.Priority.Normal, HighImpactGrenade);

-- Add item: Steel Spade; http://www.wowhead.com/?item=38566
local function SteelSpade()
    return not UnitOnTaxi("player")
        
        -- must be in right location
        and GetZoneText() == Localize("Zul'Drak")
        and QI.PlayerIsInArea(0.8, 0.44, 0.87, 0.515)
        
        -- must not have completed quest objective yet
        and not QI.QuestIsDone(12588); -- Troll Patrol: Can You Dig It?; http://www.wowhead.com/?quest=12588
end;
QI.RegisterQuestItem(38566, QI.Priority.Normal, SteelSpade);
